/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kz.dasm.baing.rest.entity;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Kreedmart
 */
public class TreeNode {

  private String id;
  private String text;
  private String cls;
  private boolean expanded;
  private String type;
  private boolean leaf;  
  private Integer objectId;
  private List<TreeNode> children = null;

  private Float planBudget;
  private Float factBudget;
  private Float planCharges;
  private Float factCharges;
  private Float planGrossGain;
  private Float factGrossGain;
  private Float planProfitability;
  private Float factProfitability;
  private Float planPayments;
  private Float factPayments;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }


  public String getText() {
    return text;
  }


  public void setText(String text) {
    this.text = text;
  }


  public String getCls() {
    return cls;
  }


  public void setCls(String cls) {
    this.cls = cls;
  }


  public boolean isExpanded() {
    return expanded;
  }


  public void setExpanded(boolean expanded) {
    this.expanded = expanded;
  }


  public String getType() {
    return type;
  }


  public void setType(String type) {
    this.type = type;
  }


  public List<TreeNode> getChildren() {
    if (children == null) {
      children = new ArrayList<TreeNode>();
    }

    return children;
  }


  public boolean isLeaf() {
    return leaf;
  }


  public void setLeaf(boolean leaf) {
    this.leaf = leaf;
  }


  public Integer getObjectId() {
    return objectId;
  }


  public void setObjectId(Integer objectId) {
    this.objectId = objectId;
  }


  public Float getPlanBudget() {
    return planBudget;
  }


  public void setPlanBudget(Float planBudget) {
    this.planBudget = planBudget;
  }


  public Float getFactBudget() {
    return factBudget;
  }


  public void setFactBudget(Float factBudget) {
    this.factBudget = factBudget;
  }


  public Float getPlanCharges() {
    return planCharges;
  }


  public void setPlanCharges(Float planCharges) {
    this.planCharges = planCharges;
  }


  public Float getFactCharges() {
    return factCharges;
  }


  public void setFactCharges(Float factCharges) {
    this.factCharges = factCharges;
  }


  public Float getPlanGrossGain() {
    return planGrossGain;
  }


  public void setPlanGrossGain(Float planGrossGain) {
    this.planGrossGain = planGrossGain;
  }


  public Float getFactGrossGain() {
    return factGrossGain;
  }


  public void setFactGrossGain(Float factGrossGain) {
    this.factGrossGain = factGrossGain;
  }


  public Float getPlanProfitability() {
    return planProfitability;
  }


  public void setPlanProfitability(Float planProfitability) {
    this.planProfitability = planProfitability;
  }


  public Float getFactProfitability() {
    return factProfitability;
  }


  public void setFactProfitability(Float factProfitability) {
    this.factProfitability = factProfitability;
  }


  public Float getPlanPayments() {
    return planPayments;
  }


  public void setPlanPayments(Float planPayments) {
    this.planPayments = planPayments;
  }


  public Float getFactPayments() {
    return factPayments;
  }


  public void setFactPayments(Float factPayments) {
    this.factPayments = factPayments;
  }
      
  
}
